package com.tengju.settlement.application.shared;

public enum ApplicationExceptionCode {

    DEP_ACCOUNT_OPEN_ALREADY_USED_OTHER_LICENSE("开户失败，已使用其他证件号开户"),
    DEP_ACCOUNT_OPEN_LICENSE_HAS_BEEN_USED("开户失败,该证件号已被使用"),
    DEP_BANK_CARD_BIND_MORE_ONE("绑定了多张银行卡，idCode:%s"),
    DEP_BANK_CARD_ALREADY_BIND_OTHER("已绑定其他银行卡"),

    TERMINATE_FAIL_DEP_ACCOUNT_OPENED("存管账户未注销，身份终止失败"),

    CYCLE_ADD_TRANS_ORDER_NOT_FOUND("未找到服务费周期交易记录"),
    ;

    private String message;

    ApplicationExceptionCode(String message) {
        this.message = message;
    }

    public String getMessage(Object... param) {
        return String.format(message, param);
    }
}